// 配置项文件  全局注册
import ElementPlus from "element-plus";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import "element-plus/dist/index.css";
// import 'element-plus/theme-chalk/dark/css-vars.css'

import components from "@/components";
import comfun from "@/comFun";
import layout from "@/layout";
import router from "./router";
import pinia from '@/stores/index'
import "@/styles/index.scss";
import "virtual:windi.css";
import "virtual:windi-devtools";
export default {
  install(app: any) {
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component);
    }
    app.use(ElementPlus).use(comfun).use(components).use(layout).use(router).use(pinia);
  },
};
